package com.travelgroup.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum LeafType implements IEnum<Integer> {
    PROVINCE(1, "省/直辖市"),
    CITY(2, "市"),
    DISTRICT(3, "区/县"),
    TOWNSHIP(4, "乡/街道");

    @EnumValue
    private final Integer value;
    @JsonValue
    private final String type;

    LeafType(Integer value, String type) {
        this.value = value;
        this.type = type;
    }
}
